package cn.itcast.day04;

public class Dem1 {
    public static void main(String[] args) {
        userFlyable(new Flyable() {
            @Override
            public void fly(String s) {
                System.out.println(s);
                System.out.println("飞机自驾游");
            }
        });
        userFlyable((String s )->{
            System.out.println(s);
            System.out.println("你的");
        });
    }
    private static void userFlyable(Flyable  f){
        f.fly("nihao ");
    }
}
 interface Flyable{
    void fly(String s);
}